﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>
	权限管理
</title><link href="../Styles/css.css" rel="stylesheet" type="text/css" /><link href="../Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.hotkeys.js" type="text/javascript"></script>
   <!--  <script src="../Scripts/jstree/jquery.jstree.js" type="text/javascript"></script> -->
    <script src="../Scripts/jquery.cookie.js" type="text/javascript"></script>
    <!-- <script src="../Scripts/EmployeesManager.js" type="text/javascript"></script> -->
    <!--<script src="Scripts/EmployeesManager.js?0d189a86cc764626a482e60e084441dd" type="text/javascript"></script>-->
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
    <form method="post" action="tomohu2.do" id="form1">

 
<script type="text/javascript"> 
//<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
        theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
//]]>
    function openWin() {
        showModalDialog("EmployeesUpdateManager.htm", "example04", "dialogWidth:850px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
    }
   
</script>
 
 

    <div style="background: #EFF3FF; width: 22%; float: left; overflow-y: auto;">
        <div id="tree" class="tree" style="background: #EFF3FF;">
        </div>
    </div>
    <div style="width: 75%; float: left; border: 0px solid #82AFE8">
        <table width="100%">
            <tr>
                <td width="6%">
                    用户名：
                </td>
                <td width="13%">
                    <input name="name" type="text" id="name" style="width:95%;" />
                </td>
              
            
                
                <td width="13%">
                    <input style="border-style: none; border-color: inherit; border-width: 0px; background-image: url('../Images/search.gif'); width: 100px; height: 24px;" 
                        type="submit" value=""/>
                </td>
              
            </tr>
        </table>
        </form>
         
        <div class="cxlb_2" style="width: 100%">
            <table width="120%" class="tablist">
                <thead id="tablistHer">
                    <thead>
                    <tr>
                        <th width="20%">
                           用户名
                        </th>
          
            
                        <th width="15%">
                           联系方式
                        </th>
         
                        <th width="">
                            角色
                        </th>
                                  <th width="15%">
                           操作
                        </th>
                    </tr>
                </thead>
                <tbody id="tab">
                
            <c:forEach items="${list}" var="bean">
			<tr>
	       <td>${bean.name}</td>
	       
	        
	       <td>${bean.tel}</td>
	       
	       <c:if test="${bean.rolId == 1 }">
		       <td>销售员</td>
	       </c:if>
			 <c:if test="${bean.rolId == 2 }">
		       <td>管理员</td>
	       </c:if>
	          <td width="">
                <a title="编辑"  href="../role/selectqauanxian2.do?userID=${bean.userId}">
                                        权限赋予</a>
                                        
                <a title="删除"  href="../role/selectqauanxian.do?userID=${bean.userId}">
                                        权限收回</a>
              </td>
                 
                         
                                            
                                
                                
	     <!-- 	<td class="td-manage">
		        <a title="编辑" onclick="member_edit('编辑','member-add.html','4','','510')" href="javascript:;"  class="btn btn-xs btn-info" ><i class="fa fa-edit bigger-120">编辑</i></a>      
		        <a title="删除" href="#"  onclick="return confirm('确定要删除么?')" class="btn btn-xs btn-warning" ><i class="fa fa-trash  bigger-120">作废</i></a>
	      	 </td> -->
     	 </tr>
		</c:forEach>
                          
                        
                </tbody>
            </table>
           
              <script type="text/javascript">

                var Ptr = document.getElementById("tab").getElementsByTagName("tr");
                function pageLoad() {
                    for (i = 1; i < Ptr.length + 1; i++) {
                        Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
                    }
                }
                window.onload = pageLoad;
                for (var i = 0; i < Ptr.length; i++) {
                    Ptr[i].onmouseover = function () {
                        this.tmpClass = this.className;
                        this.className = "t3";

                    };
                    Ptr[i].onmouseout = function () {
                        this.className = this.tmpClass;
                    };
                }
//-->
            </script>
            
             <div style="width: 100%;">
            
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
<div id="AspNetPager1" class="anpager" style="width:100%;text-align:left;">
<div align="left" class="anpager" style="width:60%;float:left;">
	<a disabled="disabled" style="margin-right:10px;">首页</a><a disabled="disabled" style="margin-right:10px;">上一页</a><span class="cpb" style="margin-right:10px;">1</span><a disabled="disabled" style="margin-right:10px;">下一页</a><a disabled="disabled" style="margin-right:10px;">尾页</a>
</div><div class="anpager" style="width:40%;float:left;">
	记录总数：<font color="blue"><b>1</b></font> 总页数：<font color="blue"><b>1</b></font> 当前页：<font color="red"><b>1</b></font>
</div>
</div>
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
 
 
        </div>
        </div>
       
    </div>
   
    
    </form>
</body>
</html>

